﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

public partial class Manager_ViewSignTable : System.Web.UI.PageEx
{
    private DataSet ds = null;
    public static int iSelectId = 0;
    private string strPageCode = "B0023";
    private string strLoginResult = string.Empty;
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!DalEx.DbManagerEx.CheckLoginRight(UserType, UserId, strPageCode, ref strLoginResult))
        {
            FineUI.Alert.Show(strLoginResult, FineUI.MessageBoxIcon.Warning);
            Response.Redirect("Login.aspx");
        }
        int.TryParse(Convert.ToString(Request.QueryString["Id"]), out iSelectId);
        if (!Page.IsPostBack)
        {
            DataBinds();
        }
    }
    private void DataBinds()
    {
        Model.BaoMing3 M_BaoMing = Dal.BaoMing3Dal.Select(iSelectId);
        if (M_BaoMing != null)
        {
            labActivityDate.Text = M_BaoMing.ActivityDate.ToString("yyyy-MM-dd");
            labActivityName.Text = M_BaoMing.ActivityName;
            labActivityOrg.Text = M_BaoMing.ActivityOrg;
            labLimitNums.Text = M_BaoMing.LimitNums.ToString();
            lblBabyClass.Text = M_BaoMing.BabyClass;
            lblBabyName.Text = M_BaoMing.BabyName;
            lblParentName.Text = M_BaoMing.ParentName;
            lblMobile.Text = M_BaoMing.Mobile;
        }

    }
}
